﻿@{
    ViewBag.Title = "ImageTextLIst";
    Layout = "~/Views/Shared/_LayoutPageAll.cshtml";
}
@*<script src="~/js/jquery-1.8.2.js"></script>
<script>
    //无论如何都不进加载事件
    $(function () {
        var id=@ViewBag.id;
        alert(id)
        $.ajax({
            url: "http://localhost:19451/api/Menu/GetshowByid",
            type: "Get",
            // data: "{'pagesize':'" + q + "','pagindex':'"+w+"'}",
            data:{id:id},
            success: function (data) {
                var tr = ""
                $(data).each(function (i, item) {
                     tr+="<tr class='odd'><td class='cart-block-item-qty'>1 ×</td><td class='cart-block-item-title'><a href='/product/convallis-sit-amet-tellus'>convallis sit amet tellus</a></td><td class='cart-block-item-price'><span class='uc-price'>"+item.MenuPrice+"</span></td></tr> "
                });
                $("#t1").append(tr)

            }
        })
    })


    <script>
        $(function () {
            int id=@ViewBag.id;
            alert(id)
            //$.ajax({
            //    url: "http://localhost:19451/api/Menu/GetshowByid",
            //    type: "Get",
            //    data: { id: id },
            //    success: function (data) {
            //        var tr = "";
            //        var td = "";
            //        $(data).each(function (i,item) {
            //            tr = "<span class='products'><strong><span class='num-items'>1</span> "+item.MenuName+"</strong></span><a href='/Home/ShoppingCar'>View cart</a> ";
            //            td = "<span class='value'><span class='uc-price'>$" + item.MenuPrice + "</span></span>"
            //        })
            //        $("#li1").append(tr);
            //        $("#li2").append(td);
            //    }
            //})
            //$.ajax({
            //    url: "http://localhost:19451/api/Menu/GetshowByid",
            //    type: "Get",
            //    data: { id: id },
            //    success:function(data){
            //        tr+="<tr class='odd'><td class='cart-block-item-qty'>1 ×</td><td class='cart-block-item-title'><a href='/product/convallis-sit-amet-tellus'>convallis sit amet tellus</a></td><td class='cart-block-item-price'><span class='uc-price'>"+item.MenuPrice+"</span></td></tr> "
            //    }
            // })

        })

</script>*@
@*页面中心内容*@
<div class="content clearfix">
    <div class="breadcrumbs">
        <h2 class="element-invisible">You are here</h2><div class="breadcrumb"><a href="/">返回首页</a> » 图文列表</div>
    </div>
    @*图文详情*@
    <div id="content" class="column left-content">
        <div class="section">
            <h1 class="title" id="page-title">Blog</h1>                                                                                                  <div class="region region-content">
                <div id="block-system-main" class="block block-system">
                    <div class="content">
                        <div class="view view-blog view-id-blog view-display-id-page view-dom-id-7c8c9a3e7bebbfbdd4fad9039758073c">
                            <div class="view-content">
                                <div class="views-row views-row-1 views-row-odd views-row-first">
                                    <div id="node-15" class="node node-blog node-teaser clearfix" about="/blog/convallis-sit-amet-tellus" typeof="sioc:Post sioct:BlogPost">

                                        @Html.Raw(ViewBag.ff)

                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div> 
    @*右边模块*@
    <div id="sidebar-second" class="column sidebar right-content">
        <div class="section">
            <div class="region region-sidebar-second">
                @*热线电话*@
                <div id="block-block-3" class="block block-block">


                    <div class="content">
                        <div class="call-us">
                            <span class="label">订餐电话</span><span class="pop phone">0800/ 567 345</span><span class="label">工作时间:</span><span class="pop">0-24h</span>
                        </div>
                    </div>
                </div>
                @*付款*@
                <div id="block-uc-cart-cart" class="block block-uc-cart">

                    <h2><span class="cart-block-title-bar">Cart</span></h2>

                    <div class="content">
                        <table class="cart-block-items">
                            <tbody id="t1">
                            </tbody>
                        </table>
                        <div class="cart-box">
                           
                         <div class="body">
                                <ul>
                                    <li class="info" id="li1">

                                    </li>
                                    <li class="price" id="li2">
                                        <span class="label">Total</span>

                                    </li>
                                </ul><a class="submit-button" href="/cart/checkout">Addcar</a>
                                <div class="graphic"></div>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
        </div>
    </div>
</div>
